import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    // 路由来渲染菜单的数据
    menuRouterList: []
  },

  mutations: {
    updateRouter (state, routerLIst) {
      // 传入要追加的路由数组
      state.menuRouterList = [...constantRoutes, ...routerLIst]
    }
  }

}
